Fully Normalizing Lambda Calculus Machines

نویسنده

  • Werner E. Kluge
چکیده

Almost all implementations of functional languages known today realize a weakly (head) normalizing λ-calculus which rules out substitutions and reductions under abstractions, restricting what can be computed with these languages basically to ground terms, which is what can be accomplished with imperative languages as well. One could be content with this situation, arguing that for the majority of real-life applications this is all there is needed. However, one could also argue that too much is given up too easily. Supporting a fully normalizing λ-calculus that employs full-fledged β-reductions as the basic substitution mechanism is the key to symbolic computations involving free variables, i.e., to treat both variables and functions (abstractions) truly as first class objects. Full normalization is for instance required in proof assistant systems where terms must be compared for β-equivalence, but it may also be applied to advantage for high-level program optimizations such as converting partial applications into new, specialized abstractions and normalizing abstraction bodies, or to unroll recursive abstractions in order to eliminate repeated parameter passing steps. Time permitting, we will outline two machine concepts that use fairly conventional machinery to reduce λ-terms to weak head normal forms and then employ special mechanisms to push delayed substitutions (or environments) over abstractors, thereby resolving in an orderly form potential naming conflicts, in order to be able to continue with weak normalizations inside abstraction bodies. One approach is based on the so-called λσ-calculus that separates substitutions from the λ-terms proper, the other treats substitutions conceptually as integral parts of λ-terms.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Fully abstract encodings of λ-calculus in HOcore through abstract machines

We present fully abstract encodings of the call-byname λ-calculus into HOcore, a minimal higher-order process calculus with no name restriction. We consider several equivalences on the λ-calculus side—normal-form bisimilarity, applicative bisimilarity, and contextual equivalence—that we internalize into abstract machines in order to prove full abstraction.

متن کامل

A Formalization of Strong Normalization for Simply-Typed Lambda-Calculus and System F

We formalize in the logical framework ATS/LF a proof based on Tait’s method that establishes the simply-typed lambda-calculus being strongly normalizing. In this formalization, we employ higher-order abstract syntax to encode lambda-terms and an inductive datatype to encode the reducibility predicate in Tait’s method. The resulting proof is particularly simple and clean when compared to previou...

متن کامل

The weak lambda calculus as a reasonable machine

We define a new cost model for the call-by-value lambda-calculus satisfying the invariance thesis. That is, under the proposed cost model, Turing machines and the call-by-value lambda-calculus can simulate each other within a polynomial time overhead. The model only relies on combinatorial properties of usual beta-reduction, without any reference to a specific machine or evaluator. In particula...

متن کامل

A recursive normalizing one-step reduction strategy for the distributive lambda calculus

We positively answer the question A.1.6 in [2]: “Is there a recursive normalizing one-step reduction strategy for micro λ-calculus?” Micro λ-calculus refers to an implementation of the λ-calculus due to [1], implementing β-reduction by means of “micro steps” recursively distributing a β-redex (λx.M)N over its body M . 1 Inner spine strategy First, we provide “micro λ-calculus” with a more syste...

متن کامل

The differential λμ-calculus

We define a differential λμ-calculus which is an extension of both Parigot’s λμ-calculus and EhrhardRégnier’s differential λ-calculus. We prove some basic properties of the system: reduction enjoys ChurchRosser and simply typed terms are strongly normalizing.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005